package com.cys.dm.rest.service;

import com.cys.dm.dao.pay.DmTradeDao;
import com.cys.dm.entity.pay.DmTrade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author blue_t
 * @date 2020-12-30 9:49
 */
@RestController
public class DmTradeService {
    @Resource
    private DmTradeDao dmTradeDao;

    @PostMapping(path = "/addTrade")
    public Integer addTrade(@RequestBody DmTrade dmTrade){
        return dmTradeDao.insert(dmTrade);
    }
}
